package com.xiaofeng.pochi.enums;

import lombok.Getter;

/**
 * Created with IntelliJ IDEA
 *
 * @Author: chc
 * @Date: 2022/07/07/23:47
 * @Description:
 */
@Getter
public enum StateEnums {

    /**
     * 逻辑删除状态
     */
    DELETED(1, "已删除"),
    NOT_DELETED(0, "未删除"),

    /**
     * 启用状态
     */
    ENABLED(1, "启用"),
    NOT_ENABLE(0, "未启用"),

    /**
     * 性别状态
     */
    SEX_MAN(1, "男"),
    SEX_WOMAN(2, "女"),

    /**
     * 请求访问状态枚举
     */
    REQUEST_SUCCESS(1, "请求正常"),
    REQUEST_ERROR(0, "请求异常"),

    /**
     * 菜单状态枚举
     */
    FOLDER(1, "目录"),
    MENU(2, "菜单"),
    AUTH(3, "权限"),

    /**
     * 优惠券状态枚举
     */
    ALL(0, "全场通用"),
    CATEGORY(1, "指定分类"),
    PRODUCT(2, "指定商品"),

    /**
     * 绑定账户状态
     */
    EXISTS_USER(1, "绑定已有账户"),
    NEW_USER(2, "绑定新账户"),


    /**
     * 是否默认收货地址
     */
    ADDRESS_DEFAULT(1, "默认"),
    ADDRESS_NOT_DEFAULT(0, "非默认"),


    /**
     * 优惠卷领取状态
     */
    COUPON_NORMAL(1, "正常"),
    COUPON_TIMEOUT(0, "过期"),
    COUPON_RECEIVED(999, "已领取"),

    /**
     * 评论状态
     */
    COMMENT_SIMPLE(1, "普通评价"),
    COUPON_MCH(2, "商家回复"),
    COMMENT_REVIEW(3, "追评"),
    ;


    private Integer code;
    private String msg;

    StateEnums(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}


